import request from '@/utils/request'

export function getFrequentlyUsedURLsAll(pageNum,pageSize,userID) {
  return request({
    url: `/frequentlyUsedURLs/queryFrequentlyUsedURLs/${pageNum}/${pageSize}/${userID}`,
    method: 'get'
  })
}

export function updateFrequentlyUsedURLs(data) {
  return request({
    url: `/frequentlyUsedURLs/updateFrequentlyUsedURLs`,
    method: 'put',
    data: data
  })
}

export function delFrequentlyUsedURLs(id) {
  return request({
    url: `/frequentlyUsedURLs/delFrequentlyUsedURLsById/${id}`,
    method: 'delete'
  })
}

export function addFrequentlyUsedURLs(data) {
  return request({
    url: '/frequentlyUsedURLs/addFrequentlyUsedURLs',
    method: 'post',
    data: data
  })
}
